import Home from "../pages/Home"
import List from "../pages/List"
import Addlist from "../pages/Addlist"
import Detail from "../pages/Detail"
const menuRouter =[{
    path:'/home/list',
    name:'试卷列表',
    element:<List/>
},{
    path:'/home/addlist',
    name:'添加考试',
    element:<Addlist/>
}]

const routes=[{
    path:'/home',
    element:<Home/>,
    children:menuRouter
},{
    path:'/detail',
    element:<Detail/>
},{
    from:'/',
    to:'/home/list'
}]

export {
    menuRouter,
    routes
}